import { request } from '../../../request';

/** 获取消息状态列表 */
export function getStateList() {
  return request({
    url: '/qms/agv/notice/noticeState',
    method: 'get'
  });
}

/** 获取回复对话框表格信息 */
export function getReplyList(params: any) {
  return request({
    url: '/qms/agv/notice/reply/list',
    method: 'get',
    params
  });
}

/** 编辑消息 */
export function editMessage(data: any) {
  return request({
    url: '/qms/agv/notice/reply/update',
    method: 'put',
    data
  });
}

/** 删除信息item */

export function deleteItem(id: any) {
  return request({
    url: `/qms/agv/notice/reply/delete/${id}`,
    method: 'delete'
  });
}

/** 删除消息 */
export function deleteMessage(id: any) {
  return request({
    url: `/qms/agv/notice/delete/${id}`,
    method: 'delete'
  });
}

/** 回复信息 */
export function replyMessage(data: any) {
  return request({
    url: '/qms/agv/notice/reply/save',
    method: 'post',
    data
  });
}

/** 验证 */

export function noticeCheck(data: any) {
  return request({
    url: '/qms/agv/notice/reply/check',
    method: 'put',
    data
  });
}
